/*
 * 寻找中位数v1.0（4分）
 */

#include <stdio.h>

int mid(int a, int b, int c) {
	if (a > b) {
		if (b > c) {
			return b;
		} else {
			if (a > c) {
				return c;
			} else {
				return a;
			}
		}
	} else {
		if (b < c) {
			return b;
		} else {
			if (a > c) {
				return a;
			} else {
				return c;
			}
		}
	}
}

int main() {
	setbuf(stdout, NULL);

	int a, b, c;

	scanf("%d%d%d", &a, &b, &c);

	printf("The result is %d\n", mid(a, b, c));

	return 0;
}